<?php

namespace App\View\Components;

use Illuminate\Http\Request;
use Illuminate\View\Component;

class UploadBox extends Component
{
    // public $accept;
    /**
     * Create a new component instance.
     *
     * @return void
     */
    public function __construct(Request $request, $name = '', $value='', $accept='')
    {
        $this->name = $name;
        $this->value = $value;
        $this->accept = $accept;
    }

    /**
     * Get the view / contents that represent the component.
     *
     * @return \Illuminate\View\View|string
     */
    public function render()
    {
        return view('components.upload-box', ['name' => $this->name,
            'value'=>$this->value,
            'accept'=>$this->accept]);
    }
}
